<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="includes/head.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Zmień hasło</title>
</head>
<body>
	<span id="whole-page-wrapper">
			<div id="wrapper" align="center">
			<%@include file="includes/header.jsp" %>
			<%@include file="includes/menu.jsp" %>	
					
				<div id="content">
					<div id="inner-content">
					<c:if test="${sessionScope.user != null }">
						<h3>Podaj następujące dane:</h3>
						<br>
						<form action="changePass" method="post" class="leftAlignedForm">
							<h4>Stare hasło:</h4>
							<fieldset>
								<input type="password" name="old_password" />
							</fieldset>
							<h4>Nowe hasło:</h4>
							<fieldset>
								<input type="password" name="new_password" />
							</fieldset><br><br>
							<fieldset>
								<input type="hidden" name="userID" value="${param.userid}" >
								<input type="Submit" value="Zmień hasło!">
							</fieldset>
							<br>
						</form>
					</c:if>
					<c:if test="${sessionScope.user == null }">
						Nie masz uprawnień do korzystania z tej strony!
					</c:if>
					</div>
				</div>
				<%@include file="includes/footer.jsp" %>
			</div>
		</span>
</body>
</html>